import Layout from "@/layout/index.vue";

export const conProcessRoutes = [
    {
        path: '/contract',
        component: Layout,
        hidden: true,
        children: [
            {
                permissions: ['con:process:page'],
                path: 'process/view/:conId(\\d+)',
                component: () => import('@/views/contract/process/contractMain.vue'),
                name: 'ConProcessView',
                meta: { title: '办理合同详情', activeMenu: '/contract/process' }
            }
        ]
    },
    {
        path: '/contract',
        hidden: true,
        children: [
            {
                path: 'processing/audit/openFile/:conId(\\d+)',
                component: () => import('@/views/contract/process/processing/flowInfo/audit/contractFile.vue'),
                name: 'ConProcessingAuditFile',
                meta: { title: '合同正文' }
            },
            {
                path: 'processing/sign/openFile/:conId(\\d+)',
                component: () => import('@/views/contract/process/processing/flowInfo/sign/contractFile.vue'),
                name: 'ConProcessingSignFile',
                meta: { title: '合同正文' }
            },
            {
                path: 'processing/sign/openFileCompare/:conId(\\d+)',
                component: () => import('@/views/contract/process/processing/flowInfo/sign/contractFileCompare.vue'),
                name: 'ConProcessingSignFileCompare',
                meta: { title: '查看合同正文变动' }
            },
            {
                path: 'processing/fulfill/openFileCompare/:conId(\\d+)',
                component: () => import('@/views/contract/process/processing/flowInfo/fulfill/contractFile.vue'),
                name: 'ConProcessingFulfillFile',
                meta: { title: '合同正文' }
            },
            {
                path: 'processing/archiving/openFile/:conId(\\d+)',
                component: () => import('@/views/contract/process/processing/flowInfo/archiving/contractFile.vue'),
                name: 'ConProcessingArchivingFile',
                meta: { title: '合同正文' }
            },
            {
                path: 'processed/openFile/:conId(\\d+)',
                component: () => import('@/views/contract/process/processed/flowInfo/contractFile.vue'),
                name: 'ConProcessedFile',
                meta: { title: '合同正文' }
            }
        ]
    },
]